//
//  MyInformCell.m
//  diaoyuren
//
//  Created by 钓鱼人 on 16/1/11.
//  Copyright © 2016年 game. All rights reserved.
//

#import "MyInformCell.h"
#import "Masonry.h"
@implementation MyInformCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _label = [[UILabel alloc]init];
        [self.contentView addSubview:_label];
        
        _detailLabel = [[UILabel alloc]init];
        [self.contentView addSubview:_detailLabel];
        
        [self MakMas];
    }
    return self;
}

-(void)MakMas{
    [_label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@15);
        make.centerY.equalTo(self.contentView.mas_centerY);
        make.width.equalTo(@60);
    }];


    [_detailLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_label.mas_right).offset(20);
        make.centerY.equalTo (_label.mas_centerY);
    }];
}
@end
